package jse;

/**
 * 
 * @desc  测试重写hashcode方法
 * @author kanggw
 * @datetime 2016年3月24日,下午9:57:58
 */
public class WriteHashCodeTest {

	public static void main(String[] args) {
		
		WriteHashCode cat1 = new WriteHashCode("java",20,20.5);
		WriteHashCode cat2 = new WriteHashCode("java",22,20.5);
		WriteHashCode cat3 = new WriteHashCode("java",20,20.5);
		
		System.out.println("cat1哈希码"+cat1.hashCode());
		System.out.println("cat2哈希码"+cat2.hashCode());
		System.out.println("cat3哈希码"+cat3.hashCode());
	}
}
